package com.haiyou.dc.netty.entity.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 发送消息参数
 */
@Data
@ApiModel(value = "发送消息参数")
public class ImChatDTO implements Serializable {

    @NotNull(message = "发送者不能为空")
    @ApiModelProperty(value = "发送者", name = "sender")
    private String sender;

    @NotNull(message = "接收者不能为空")
    @ApiModelProperty(value = "接收者", name = "receiver")
    private String receiver;

    @NotNull(message = "消息内容不能为空")
    @ApiModelProperty(value = "消息内容", name = "content")
    private String content;

    @ApiModelProperty(value = "是否签收，1是，0否，默认为0", name = "sign")
    private String sign;

    @ApiModelProperty(value = "内容类型，1text，2image，3sound，4date", name = "msgType")
    private String msgType;

}
